/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

$(function(){
    $("#pageHeader").load("pageHeader.html"); //to include header in all pages

});

function singUp()
{

    
    if( $("#password").val() != $("#confirm_password").val())
    {
       
        $("#password").val('');
        $("#confirm_password").val('');
        alert("passwords do not match");
    }
    else if($("#name").val()=="" && $("#address").val()=='' && $("#tel").val()==''||$("#email").val()=='' && !($("#condition").is(':checked')) && $("#password").val().length < 6)  
    {
        alert("Registration Success. Please log in!!!!!!!!!");
        var promise=$.get("registration");
    }
    else
    {
        //alert("Please Enter Information correctly");
       console.log("error");
    }
//    else if($("#password").val() != $("#confirm_password").val())
//    {
//        alert("")
//    }
//     if($("#password").val() === $("#confirm_password").val() &)
}
